package com.ankicoo.phonograph.controller;

import com.ankicoo.common.response.ResponseBody;
import com.ankicoo.phonograph.entity.RecBasePO;
import com.ankicoo.phonograph.mapper.RecBaseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Description: 录音信息接口
 *
 * @author : QCYANG
 * @date : 2021/8/17 15:17
 */
@RestController
@RequestMapping("/recBase")
public class RecBaseController {
    @Autowired
    private RecBaseMapper recBaseMapper;

    @GetMapping("/all")
    public ResponseBody<List<RecBasePO>> findAllRecBase(){
        return ResponseBody.createBySuccess(recBaseMapper.selectAll());
    }


}
